# -*- coding: utf-8 -*-
"""
TG垂直布局组件 - TgVBoxLayout
垂直布局组件，将子组件垂直排列
"""
from PySide6.QtWidgets import QVBoxLayout
from ..base.layout import TgLayoutMixin


class TgVBoxLayout(TgLayoutMixin, QVBoxLayout):
    """TG垂直布局"""

    def __init__(self, parent=None, margins='medium', spacing='medium'):
        # 显式调用父类的__init__方法
        if parent:
            QVBoxLayout.__init__(self, parent)
        else:
            QVBoxLayout.__init__(self)
        TgLayoutMixin.__init__(self, margins=margins, spacing=spacing)